package com.pzhyd.sc.biz.inter;

import java.util.List;
import com.pzhyd.sc.entity.UsersInfo;
import com.pzhyd.sc.util.Page;
/**
 * 用户逻辑层，用户对数据库中用户信息的操作
 * @author Gao shiwei
 * @version V2012.0.1
 */
public interface IuserBiz {
		/**
		 * 用户登陆
		 * @param account
		 * @param pwd
		 * @return
		 * @throws Exception
		 */
		public UsersInfo userLogin(String account,String pwd) throws Exception;
		
		/**
		 * 查询用户是否存在
		 */
		public boolean queryUserbyusersAcount(String usersAcount) throws Exception;
		
		/**
		 * 修改用户
		 */
		public int updateUserInfo(UsersInfo user) throws Exception;
		
		/**
		 * 根据用户的编号来查询用户
		 */
		public UsersInfo queryUserInfobyusersId(int usersId) throws Exception;
		
		/**
		 * 根据用户的区域号来查询用户
		 */
		public UsersInfo queryUserInfobyareaId(String aId) throws Exception;
		
		/**
		 * 添加用户
		 */
		public boolean insertUserInfo(UsersInfo user);	
		/**
		 * 删除用户
		 */
		public boolean deleteUserInfo(UsersInfo user) throws Exception;	
		
		/**
		 * 分页查询用户的信息
		 */
		public void queryUserInfo(Page page) throws Exception;
		
		
		public List<UsersInfo> searchAlluser() throws Exception;
		
		/**
		 * 通过帐号去查询密码
		 */
		public UsersInfo queryPassbyUsersName(String usersName) throws Exception;
		
		/**
		 * 修改密码
		 */
		public boolean updatePass(String usersAcount,String pass) throws Exception;
		
		/*
		 * 批量删除用户
		 */
		public int deleteUsersByUids(int []uid) throws Exception;
		
		
	
		

		
		

}
